//
//  PhotoViewController.m
//  BeautyClother
//
//  Created by dllo on 15/9/9.
//  Copyright (c) 2015年 宋爽. All rights reserved.
//

#import "PhotoViewController.h"
#import "myCell.h"
#import "UIImageView+WebCache.h"

@interface PhotoViewController ()


@property (nonatomic, assign) CGFloat offWidth;
@property (nonatomic, assign) CGFloat offHeight;


@end

@implementation PhotoViewController


- (void)dealloc
{
    
    [super dealloc];
}

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
       
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.offWidth = [[UIScreen mainScreen]bounds].size.width / 375;
    self.offHeight = [[UIScreen mainScreen]bounds].size.height / 667;
    [self createImage];
    [self createBlue];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"f.png"] style:UIBarButtonItemStyleDone target:self action:@selector(fanhui:)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor darkGrayColor];
    
    // Do any additional setup after loading the view.
}

- (void)fanhui:(id)sender
{
    [self.navigationController popToRootViewControllerAnimated:YES];
    
}


- (void)createImage
{
    
    UIImageView *image = [[UIImageView alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
    [self.view addSubview:image];
    image.image = [UIImage imageNamed:@"10.png"];
    UIVisualEffectView *visual = [[UIVisualEffectView alloc]initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
     visual.frame = CGRectMake(0, 0, image.frame.size.width, image.frame.size.height);
    [image addSubview:visual];
    
}



- (void)createBlue
{
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, self.view.frame.size.width - 20, self.view.frame.size.height)];
    [self.view addSubview:label];
    label.backgroundColor = [UIColor clearColor];
    label.textColor = [UIColor whiteColor];
    label.text = @"     beautiful travel 是集合穿衣搭配和旅游于一体的App 可以让爱美的你通过这里的穿衣搭配得到灵感 通过化妆或者拍照的教程让自己美美的去旅行 希望您能在这里得到收获 获得惊喜  \n\n    此外还有一些八卦娱乐 供您阅读 希望您喜欢我的作品  谢谢美美的你 \n\n\n   作者:宋爽\n   联系方式:   QQ  57624199";
    label.numberOfLines = 0;
    [label release];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
